package com.jala.user.mapper;

import java.util.List;

import com.jala.user.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface UserMapper {

    List<User> listUser(
            @Param("offset")int offset,
            @Param("pageSize")int pageSize,
            @Param("loginId")String loginId,
            @Param("userName")String userName,
            @Param("state")Integer state);

    int countUser(
            @Param("loginId")String loginId,
            @Param("userName")String userName,
            @Param("state")Integer state);
}